import request from '@/utils/request'

/* 用户列表分页*/
export function selectUserList(data) {
  return request({
    url: '/system/user/selectUserPage',
    method: 'post',
    data: data
  })
}

/* 新增用户*/
export function saveUser(data) {
  return request({
    url: '/system/user/saveUser',
    method: 'post',
    data: data
  })
}

/* 修改用户*/
export function updateUser(data) {
  return request({
    url: '/system/user/updateUserById',
    method: 'post',
    data: data
  })
}

/* 根据id查询用户*/
export function selectUserById(data) {
  return request({
    url: '/system/user/selectUserById/' + data,
    method: 'post'
  })
}

/* 重制密码*/
export function resetPassword(data) {
  return request({
    url: 'system/user/resetPassword/' + data,
    method: 'post'
  })
}

/* 批量删除用户*/
export function deleteUser(data) {
  return request({
    url: 'system/user/deleteUser',
    method: 'post',
    data: data
  })
}

/* 修改密码*/
export function updatePassword(data) {
  return request({
    url: '/system/user/updatePassword',
    method: 'post',
    data: data
  })
}
